package com.mall.order.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mall.common.annotation.Excel;
import com.mall.order.model.entity.OrderEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

@Setter
@Getter
@ApiModel("订单表")
public class OrderVo extends OrderEntity {

    @ApiModelProperty(value = "商品详情")
    private List<OrderItemVo> items;

    @ApiModelProperty(value = "订单状态名称")
    @Excel(name = "订单状态名称")
    private String orderStatusName;

    @ApiModelProperty(value = "游泳馆名称")
    @Excel(name = "游泳馆名称")
    private String swimPlaceName;

    @ApiModelProperty(value = "游泳馆地址")
    @Excel(name = "游泳馆地址")
    private String swimPlaceAddress;

    @ApiModelProperty(value = "课程名称")
    @Excel(name = "课程名称")
    private String courseName;

    @ApiModelProperty(value = "游泳课班级")
    @Excel(name = "游泳课班级")
    private String swimPlaceClassName;

    @ApiModelProperty(value = "报名开始时间")
    @Excel(name = "报名开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date signupStartTime;

    @ApiModelProperty(value = "报名截止时间")
    @Excel(name = "报名截止时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date signupEndTime;

    @ApiModelProperty(value = "上课开始日期")
    @Excel(name = "上课开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date courseStartDate;

    @ApiModelProperty(value = "上课截止日期")
    @Excel(name = "上课截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date courseEndDate;

    @ApiModelProperty(value = "上课开始时间")
    @Excel(name = "上课开始时间")
    private String courseStartTime;

    @ApiModelProperty(value = "上课截止时间")
    @Excel(name = "上课截止时间")
    private String courseEndTime;

    @ApiModelProperty(value = "限制人数")
    @Excel(name = "限制人数")
    private Integer limitNum;

    @ApiModelProperty(value = "上课地址")
    @Excel(name = "上课地址")
    private String courseAddress;

    private String tradeNo;

}
